Refactoring for sprockets