Load configuration of module in separate function