Clean the prolog_frontend related code