[CB-4122] remove dupe code
[CB-4131] Use relative require paths in media-capture plugin.