Move getPrototypes method on utils