More rural hospitals are closing their maternity units