Refactored metafunctions

Signed-off-by: K-ballo <k@fusionfenix.com>