[view] [refactor] [minor] Moved view middleware into separate file
[view] [refactor] Cleaning up structure.