Trimming the mvc middleware to be more simple.