Remove unneccessary begin/end block