Programming Phoenix LiveView (B.10, page 209): Input component's Year of Birth range differs from changeset's validate_inclusion

The input component specifies the year of birth range as 1920..2023 on page 209 (snippet at top of page). However, Demographic’s changeset year of birth range is 1920..2022 instead on page 173 (see validate_inclusion). Maybe “expose” that range as a function in Demographic instead to avoid such mismatches?