Refactor of code to better model instance type pricing