Refactor fraction