[lib] Add function to remove device from device list
Summary:
Analogical to addDeviceToDeviceList(), added a function that removes a device.
Depends on D12238
Test Plan: Unit tests added in the next diff
Reviewers: kamil
Reviewed By: kamil
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D12239