Remove redundant begin..end