Refactor label creation to method