factored MotionDetector out of motion_detection node