front: Simplify some code.