DRY up api methods