Split out some helper functions for WorksController#set_instance_variables

I'm not sure about the method names, but it's far more readable to me,
now.