nfp: flower: refactor tunnel key layer calculation