Simplify the Racket code