Rebuilding Variation Redirect Script as Class.