Comparing factory and builder patterns