Pass block configuration as a block rather than in options hash