Drug factories in 'terrible shape' add to dangers