Cleanup get_last_revision after #141