[Refactoring] Moved some methods from appUtils to utils.