combined factory creation for controllers and view helpers