remove dependency of GridDefinition class