Clean up log interfaces and implementations.
Properly handle removing entries after an index prior to the given segment.