You could avoid this `if` statement and the one below by creating a delegation object in the constructor above.