Removed migrate script since we rolled it into a bin.
Moved migrate code into a class method so that the migration can be run from outside of the CLI.