Extract add_create_or_update_stub method for appbase controller.