Extract boot hook to Railtie