Modernizing complex legacy application