Refactoring and cleaning up after rails composer