Refactor fn code