Removing seperate directive and service and placing them in the controller instead.