Refactor AROW classifier