Refactor to avoid the *_PARENT constants.