Issue #2944203 by jrockowitz, bucefal91: Exposing source entity detection as a plugin type for better flexibility.