restore prev version of bundle.yml
Revert "Move middlewares under hooks"

This reverts commit ebb96bebf7c734cef5b6d956295ffb1913109049.