Remove friend declaration since it seems not to be needed anyways.