I think this pattern could also be useful in workflow/models.py starting on line 94.  Would it be possible to move the dictionary into the workflow models module and then encapsulate it in a function?  Maybe something like, `api_for_step()`?