Removed unused year-function.
Some refactoring and removal of unused function from refers.