Fix deprecated API usage warnings in workspace