Broke out the directive renderer into it's own file to satisfy code climate's complexity check