DRY up API spec