light refactoring for the #define_id_methods_for(klass) in the RepositoryFindGenerator module