Remove legacy logging code