As the constructors take always the same parameter we can simplify here:

```php
if(){
    $cls = 'FilePageTabbled';
} else if {
    $cls = 'FilePageMobile';
} else {
   $cls = 'WikiaFilePage';
}

return new $cls($fileTitle);
```