Split SWIG module into smaller parts.