#1041 Unify createMethods().