Re-implemented some static factory methods.