[CB-4111] remove dupe code
[CB-4131] Use relative require paths in console plugin