Implement shape factory interface.