Refs #9413 functions for duplicated code