Yes. You need to file G-28 and check "Check Applicable Item(s) below ( )4 other" and write a note there such as "terminate the lawyer XXX to represent you for your I-140/I-485 cases, etc."