Moving simpler middleware to just static methods