Refactor time key and tag key mixins

This PR refactors the `SetTimeKeyMixin` and the `SetTagKeyMixin`.

The initial idea was to alter the possible configuration options for those mixins. However, this was considered to be too specific to our problem at hand. In the course of the implementation the refactoring represented in this PR evolved and I did not want to hold it back. I hope it makes the code clearer.

This PR is best reviewed commit by commit.
Please check `utc` because `utc is not used` is logged.