Cleaner way to dynamically load modules/classes