Migrate some methods in the commands service