I think it's fine to leave it as-is, but the definition part can be moved up to where the var is.