Replace duplicated requires with variable