Fix retrieval of constants in nurseries

GCP-10508

Reviewer: Aldrin Batac