Do layout guide calculation earlier