Cleans up model layout stuff