FYI, in 0.10.* we kept this inside the apply method, but lgtm either way.