Both have advantages so my route into solving this would be to use both.

Create a function that then initialises the actual class internally - then you only need to call the function itself, the more complex code that includes teh file and then creates the class is then placed in that....