Call private method define_method correctly.