technical debt reduction eliminating legacy domain trust protocols