Configuration Based Improved Synthesis of Metamorphic Mechanisms