Sprockets integration refactored