Extract KK board procedures to library