Separating concerns and testing retrieval of PHP code in logic.php