Simplify code to use Labels API