Simplify syntax for setting of assets middleware