Refactor: use rails engine instead of railtie