Extract getClassName method

Make it easier to customize the migration naming schema.
Extract registerCreator method

Make it easier to register a custom creator.
Merge pull request #5512 from alprs/fix/extract-register-creator

Extract registerCreator method
Merge pull request #5510 from alprs/fix/extract-migration-classname

Extract getClassName method
Merge branch '4.2'