Improve class constructor interface, friendly for bundle.