refactor sprockets proxy in elixir and ruby code