Moved prepare_doric_factors routine to the doric module which is
where it logically belongs.