Replace attributes syntax with $define and $driver