GstMfxEnc: Move some functions to good place.