Remove survey code from component
Extract methods
Invert if
Convert method to constructor

Because intellij …
extract methods