### Goal all middleware related code ought to be moved out into a separate repo. ### Notes (Optional) _No response_