Refactor: use Rails Engine