Refactor asset serving into its own method