[#57] Moved some helper functions from system to utils