Extracted common class KpIndex into an external library