Move hsts_age and other variables set in __init__ out of the if statement