Factored out logic for building remove transactions (removing a model
from a canvas).

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>