Revert "Clear factories in spec_helper"

This reverts commit cdc8f56fcaec5329b40c7bf21afa8c188ad28147.