Move card factory back to cards library