ticket:89 Moved path builder to angular factory