Move utilities to prototypes in a separate file