Removed redundant '.when' closure.