Remove unnecessary brackets in scopes