remove deprecated methods to remove legacy code and improve the overall maintainability and software performance by reducing complexity.