[CB-3368] Moving capture to a plugin