Updates logic class to include withoutsharing ref from the beginning.