Refactor sitename variable