simplify: combine like functions

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>