rename LabelParser.apply to LabelParser.parse
use extends for singleton