Refactor controller vars into helper methods