Moved all utilities into a new service namespace with proper deps injection. Wrote most unit test for those utils. Remove a frontend duplication copy that was accidentally copied to frontend/frontend