Refactored configuration middleware folder location