Tidy GUI player factory code.