Cleanup frontend utils.