Moved padding responsibility to handler decorator

Now the before and after padding can be specified in the handles
decorator arguments.