Refactor: Remove unused function