Software libraries, typically accessible through Application Programming Interfaces (APIs), enhance modularity and reduce development time. Nevertheless, their use reinforces system dependency on third-party software. When libraries become obsolete or their APIs change, performing the necessary modiications to dependent systems, can be time-consuming, labour intensive and error-prone. In this paper, we propose a methodology that reduces the efort developers must spend to mitigate library obsolescence. We describe the steps comprising the methodology, i.e., source code analysis, visualisation of hot areas, code-based transformation, and veriication of the modiied system. Also, we present some preliminary results and describe our plan for developing a fully automated software modernisation approach. CCS CONCEPTS • Software and its engineering → Software libraries and repositories; Software evolution; Maintaining software;