User can't reference unpublished content even when they have access to it
- Refactor the implementation by adding new option
- Refactoring based on new option
- Revert old test case changes as they were incorrectly removed.
- Add an update hook for setting up default values.
- Add test cases for the update hook.
Closes #2845144