Cleaned up log recovery code to use continuation style.

Review: https://reviews.apache.org/r/18584