Refactoring railtie