Improving API Polymorphism Through Identification and Control