Medium to lay off third of workforce after announcing restructuring plan