I don't think so.  Moving logic out of Rakefile seems a worthy objective.  I'll have a think about how to best frame the API for clarity and make the change.