Removed Duplication from YAML and JSON backends.

Converted to FileBackend.