Legacy middleware modernization