"Big ships turn slowly", the saying goes. That's true nautically and in software. Software grows over time, and the bigger it gets the harder it is to make significant changes. When those changes are not just technical but cultural the task becomes even harder.
But harder doesn't have to mean impossible. Witness Drupal 8, which has modernized itself from a PHP 4 procedural application to a PHP 5.4 object-oriented platform. It can be done!
No matter how old your code base, there is still hope! Let's see what it takes to modernize a legacy code base, and how to build toward the system you want to have. Refactoring legacy code is just like eating an elePHPant... you do it one bite at a time.