Split files into spec and lib.