Decomposing Legacy Programs: A First Step Towards Migrating to Client-Server Platforms