Refactored PrimitiveDataEditor to use dependency injection.  Added Gin to wire dependencies.