DRY up the railtie a bit