Create OverwriteHandler class

* Moved the `_handle_overwrite` method to a separate class `OverwriteHandler`.
* Renamed "dot" to "period".