Document using block for DRYing up api parameters