Some refactor of asset pipeline to be DRYer