ir: Add remove method to Scope