Relocate middlwares