ObjectiveC migrator: some refactoring to reduce
code size.