This might be better expressed as `badge.status | default('active') | capitalize`.