split directives and factories into specific angular modules