Remove unused dependency
Shared toJSON method for schema