See commit "Add F1AP UE context setup request message enc/dec + test" for more details on the approach taken.