removing if statement in yaml