Moved overflow rules from module to layout