Long-term technical debt resolving legacy domain references