Simplify `joinStatements()`