Split optimized contract into root class and extension methods.