Refactor all remove queries not to use ORM
Summary: This differential refactors all remove queries not to use ORM.
Test Plan: Execute tests in https://phab.comm.dev/D10711. Remove queries are covered there.
Reviewers: kamil, michal
Reviewed By: kamil
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D10707