added removeDog factory function to potential and rescue controllers