Refactoring to big decimal