Refactor jhipster angular code