MidLayout refacturing