Move functions used in multiple activities to utils classes