Removes config dependency from web/middleware