clinic factory now produces associations properly