How to modernize legacy applications