A refactoring to use a controller in the "cell" directive.