Reuse of Avro Reader and Writer \

Minor refactoring to enhance the reusability of created resources.