Rework the call handling code in mono_method_to_ir () to remove some code duplication.