Currently the construction of the prefetching (@PrefetchingQueueListener) and batching (@QueueListener) are copied in the Kotlin and Spring frameworks. This should be moved to the core library and the Spring and Kotlin modules just construct these containers via properties. This will simplify consumers who want to create their own annotations etc.
e.g. follow how the FIFO queue listeners are set up: