1. A method, comprising: determining a statistical distribution of shape complexities for cells of a layout database; determining which of the cells are complex cells, wherein a shape complexity of the complex cells exceeds a complex threshold determining which of the cells are normal cells, wherein the shape complexity of the normal cells is between a lower normal threshold and a higher normal threshold; finding normal layout shapes within the normal cells; moving at least a portion of at least one layout shape in at least one of the complex cells to at least one child cell of the at least one of the complex cells moving at least one of the normal layout shapes within at least one of the normal cells to a related cell selected from the group consisting of a parent cell and a child cell; and generating at least one mask from the layout database using one or more processors.