refactor(config): Removed rougue function call, reorganised module require order