Refactor to costs