Preventing solid deposits in pumps