Splitting out controller type methods into their own module for easier testing