Reduce code duplication for 0xF000 family of instructions