How to Modernize Legacy Applications for a Microservices-Based Deployment