Layout cleaning