refactor: rails engine and railtie