Move calling the smartdown gem to state object