Move common places to data.php