Remove extra `begin` and `end`