Remove layout styles from legacy-main