MAINT: in mcy put common code for constructing a sparse binary csr matrix for cython interfacing into its own function