(frontend) Cleanups to frontend.c