Split topics in input and output (_in/_out subfixes) so gateway don't get mangled