remove redundant factories