refactor feature spec