WIP: Rewrite for Cost_factors

Cost_factors should be initialized when the server starts.