Simplify expression as suggested by AppCode