Remove redundant "begin" and "end"