Refactor: based: Functionize checking if we should send replace notify
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>