Create helper function to remove duplicate code

This repetitive code is especially pronounced in Stanford's fork, where
we have extended the About page to include several additional fields.

This pays down some technical debt by refactoring into a shared helper.
Merge pull request #5874 from stvstnfrd/up/course/about

Create helper function to remove duplicate code